package com.yq.testmodule.textalign

import android.os.Bundle
import android.text.Html
import android.text.SpannableString
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.facade.annotation.Route
import com.yq.testmodule.R
import com.yq.testmodule.ReadFromFile
import config.TEST_TextAlign


@Route(path = TEST_TextAlign)
class TextAlignActivityTest:AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test_textalign)
//        val tvOrigin = findViewById<TextView>(R.id.tvOrigin)
//        val fromAssets = ReadFromFile.getFromAssets(this, "t1.html")
//        val replace = fromAssets.replace("[content]", resources.getString(R.string.test_align_text))
//        tvOrigin.setText(Html.fromHtml(replace))
    }
}